package com.zangchat.service;

import com.common.core.domain.AjaxResult;
import com.zangchat.domain.ChatLogTalk;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;

/**
 * 聊天记录 服务层
 *
 * @author ruoyi
 * @date 2020-07-29
 */
public interface IChatLogTalkService extends IService<ChatLogTalk>
{

    int saveLogTalk(Long fromId, Long receiveId, Date startTime, Date overTime, Long talkTime, int type,Boolean isFree);
    public AjaxResult checkedTalk(Long fromId, Long receiveId, Date startTime, int type);

    AjaxResult selectLogTalk(Long userId, int pageNum, int pageSize);
}